import { useState } from 'react';
import './App.css'
import BasicLayout from './layout/BasicLayout'
import PrivateRoute from './components/PrivateRoute';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';

function App(props) {


  return (
    <Router>
      <Switch>
        <Route path="/">
          <PrivateRoute component={<BasicLayout></BasicLayout>}></PrivateRoute>
        </Route>
      </Switch>
    </Router>
  );

  // return (<>
  //   <BasicLayout></BasicLayout>  
  // </>)
}

export default App
